from collections import namedtuple
import struct
WavHeader = namedtuple("WavHeader", ["ChunkID", "ChunkSize", "Format", "Subchunk1ID", "Subchunk1Size",
                                     "AutoFormat", "NumChannels", "SampleRate", "ByteRate", "BlockAlign",
                                     "BitsPerSample", "sUBChunk2ID", "Subchunk2Size"])

with open("panel.wav", "rb") as fr_wav:
    data_wave = fr_wav.read()
    values = struct.unpack("4s I 4s 4s I H H II H H 4s I", data_wave[:44])
wavHeader = WavHeader(*values)
print(f'wav header:{wavHeader}')
